package com.zhuiyun.project.api.complaint.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhuiyun.project.utils.pageUtil.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName Complaint
 * @Description TODO
 * @Author jxz
 * @Date 2023/12/13 13:40
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Table(name = "complain")
public class Complain {
    /**
    *投诉主键Id
    **/
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty("投诉主键Id")
    private Integer id;
    /**
     *用户Id
     **/
    @ApiModelProperty("用户Id")
    private Integer userId;
    /**
     *投诉内容
     **/
    @ApiModelProperty("投诉内容")
    private String  complaintContent;
    /**
     *投诉时间
     **/
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss" )//DateTimeFormat 是入参格式化；
    @ApiModelProperty("投诉时间")
    private Date complaintTime;
    /**
     *删除标志
     **/
    @ApiModelProperty("删除标志")
    private Integer delFlag;
    /**
     *是否已读
     **/
    @ApiModelProperty("是否已读")
    private Integer readFlag;
}
